# Python Module of the Week
# 要了解Python标准库，一个很不错的资源是网站Python Module of the Week
# 请访问该网站并查看其中的目录，找一个你感兴趣的模块进行探索。从模块random 开始可能是个不错的选择

import random
import time

print('Default initialization:\n')

r1 = random.SystemRandom()
r2 = random.SystemRandom()

for i in range(3):
    print('{:04.3f} {:04.3f}'.format(r1.random(), r2.random()))

print("\nSame seed:\n")

seed = time.time()
r1 = random.Random(seed)
r2 = random.Random(seed)

for i in range(3):
    print('{:04.3f} {:04.3f}'.format(r1.random(), r2.random()))
